<div id="wrapper">

    <!-- Navigation -->
    <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="index.html">Obieg dokumentów - EDI</a>
        </div>
        <!-- /.navbar-header -->
        <ul class="nav navbar-top-links navbar-right">

            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="dropdown">
                    <i class="fa fa-user fa-fw"></i>  <span ng-if="currentUser" >{{ currentUser.email}}</span> <i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="#" ng-click="logout()"><i class="fa fa-sign-out fa-fw"></i> Wyloguj</a>
                    </li>
                </ul>
                <!-- /.dropdown-user -->
            </li>
            <!-- /.dropdown -->
        </ul>
        <!-- /.navbar-top-links -->

        <!-- /.navbar-static-side -->
    </nav>
    
    <div id="page-wrapper" ng-controller="MainCtrl as showCase">
        <div class="row">
            <div class="col-lg-12 mainRow">				
                                   <button class="btn btn-primary pull-right" style="margin:10px 0px;" ng-click="goToTable()">Powrót</button>

            </div>
            <!-- /.col-lg-12 -->
        </div>
        
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        Dostępne pliki
                    </div>
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <form ng-submit="uploadFile()" class="form-horizontal" enctype="multipart/form-data">
                            <input type="file" name="file" ng-model="document.fileInput" id="file" onchange="angular.element(this).scope().setExtension(this)"/> <br />
                            Oznacz jako finalny  <input type="checkbox" ng-model="document.isFinalCheck" > <br /><br />
                            <button class="btn btn-primary" type="submit">
                                  Załaduj
                             </button>
                         </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
            
</div>
